# -*- coding: utf-8 -*-
# 循环
print("Welcome to the receipt program!")
total = 0.0
while True:
    price = raw_input("Enter the value for the seat ['q' to quit]:")
    if price == 'q':
        print("*****")
        print("Total: ${}".format(total))
        break
    if not price.isdigit():
        print("your input has error, please input a number")
        continue
    total += float(price)
